// 客户信息
import request from "@/utils/https/requests";
// 列表
export function customerGoodsList(data: any) {
  return request({
    url: "/customerGoods/list",
    method: "post",
    data,
  });
}

// 添加
export function postAddCustomerGoods(data: any) {
  return request({
    url: "/customerGoods/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModCustomerGoods(data: any) {
  return request({
    url: `/customerGoods/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function customerGoodsDetail(id: string) {
  return request({
    url: `/customerGoods/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteCustomerGoods(id: string) {
  return request({
    url: `/customerGoods/postDelete/${id}`,
    method: "post",
  });
}
